const runtime.maxAlloc
18 uses
runtime (current package)
arena.go#L541: if overflow || n < 0 || mem > maxAlloc {
chan.go#L85: if overflow || mem > maxAlloc-hchanSize || size < 0 {
malloc.go#L217: maxAlloc = (1 << heapAddrBits) - (1-_64bit)*1
malloc.go#L1428: if overflow || mem > maxAlloc || n < 0 {
map.go#L320: if overflow || mem > maxAlloc {
slice.go#L43: if overflow || tomem > maxAlloc || tolen < 0 {
slice.go#L103: if overflow || mem > maxAlloc || len < 0 || len > cap {
slice.go#L110: if overflow || mem > maxAlloc || len < 0 {
slice.go#L214: overflow = uintptr(newcap) > maxAlloc
slice.go#L220: overflow = uintptr(newcap) > maxAlloc/goarch.PtrSize
slice.go#L233: overflow = uintptr(newcap) > (maxAlloc >> shift)
slice.go#L258: if overflow || capmem > maxAlloc {
slice.go#L396: if uintptr(len) > maxAlloc {
string.go#L295: if uintptr(size) > maxAlloc/4 {
string.go#L314: if n < 0 || uintptr(n) > maxAlloc {
string.go#L519: p := (*[maxAlloc/2 - 1]byte)(unsafe.Pointer(s))
string.go#L557: p := (*[maxAlloc/2/2 - 1]uint16)(unsafe.Pointer(s))
string.go#L574: str := (*[maxAlloc/2/2 - 1]uint16)(unsafe.Pointer(strw))
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |